find the longest word from string